﻿@model TSQLDocumentorViewer.Models.DocumentationViewModel
@{
    ViewBag.Title = "Home Page";
}

<style type="text/css">
    h1 {
        margin: 10px 0 0 0;
        padding: 0px;
        font-size: 1.4em;
        color: #5c87b2;
    }

    h2 {
        margin: 10px 0 0 0;
        padding: 0px;
        font-size: 1.2em;
        color: #5c87b2;
    }

    h3 {
        margin: 0px;
        padding: 10px 0 0 0;
        font-size: 1em;
        color: rgb(63, 63, 63);
    }

    h4 {
        margin: 0px;
        padding: 10px 0 0 0;
        font-size: 0.9em;
        color: rgb(63, 63, 63);
    }

    a, :visited, :link {
        margin: 0px;
        padding: 10px 0 0 0;
        font-size: 1.1em;
        color: #5c87b2 !important;
        text-decoration: none !important;
    }

    code {
        font-size: 1em;
    }

    p {
        margin: 0px;
        padding: 0px;
        font-size: 0.85em;
    }

    ul {
        margin: 0px;
        font-size: 0.85em;
    }

    hr {
        border: solid 1px #c0c0c0;
        -webkit-border-radius: 4px 4px 4px 4px;
        border-radius: 4px 4px 4px 4px;
    }

        hr.ObjectHeader {
            margin-top: 25px;
            border: solid 2px #5c87b2;
            -webkit-border-radius: 4px 4px 4px 4px;
            border-radius: 4px 4px 4px 4px;
        }

        hr.ObjectFooter {
            border: solid 1px #5c87b2;
            -webkit-border-radius: 4px 4px 4px 4px;
            border-radius: 4px 4px 4px 4px;
        }

    input[type="submit"] {
        font-size: 0.8em;
        padding: 5px;
        margin: 0px;
    }
</style>

<div style="float: left; margin-bottom: 20px">
    <div style="width: 50%; float: left">
        @using (@Html.BeginForm())
        {
            <div>
                <hr class="ObjectHeader" />
                <h1>Setup</h1>
                <hr class="ObjectFooter" />
                Select your options and click the "Get Documentation" button.
            <h3>Include Code Tags @Html.CheckBoxFor(m => m.IncludeCodeTags) </h3>
                Includes any code between <code>&lt;code&gt;</code> and <code>&lt;/code&gt;</code> tags 
            <h3>Include Referenced Objects @Html.CheckBoxFor(m => m.IncludeReferencedObjects) </h3>
                Includes any referenced objects (Tables, Views, Procs etc) that appears in the text.
            <h3>Connection String</h3>
                @Html.TextBoxFor(m => m.ConnectionString, new { style = "width:95%" })
                Using Web.Config Connection String. If required you can override Connection String for alternitive Servers/Databases<br />
                <br />
                <input type="submit" value="Get Documentation" />
            </div>
        }
    </div>
    <div style="width: 50%; float: left">
        @Model.HtmlDocumentationGuide
    </div>
</div>
@if (Model.HtmlDocumentationIndex == null)
{
    <div>&nbsp</div>
}
<div style="">
    @Model.HtmlDocumentationIndex
</div>
<div>
    @Model.HtmlDocumentation
</div>
